{"ast":null,"code":"var _jsxFileName = \"/data/messenger.client/src/components/UserItem/index.tsx\";\nimport React from 'react';\nimport classNames from \"classnames\";\nimport { Name } from \"../index\";\nimport './UserItem.scss';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nconst UserItem = props => {\n  return /*#__PURE__*/_jsxDEV(\"div\", {\n    className: classNames('users__item', {\n      'users__item--online': true,\n      'users__item--active': false\n    }),\n    children: [/*#__PURE__*/_jsxDEV(\"div\", {\n      className: \"users__item--avatar\"\n    }, void 0, false, {\n      fileName: _jsxFileName,\n      lineNumber: 17,\n      columnNumber: 13\n    }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n      className: \"users__item-info\",\n      children: [/*#__PURE__*/_jsxDEV(\"div\", {\n        className: \"users__item-info-top\",\n        children: /*#__PURE__*/_jsxDEV(\"p\", {\n          className: \"users__item-name\",\n          children: /*#__PURE__*/_jsxDEV(Name, {\n            user: props.profile\n          }, void 0, false, {\n            fileName: _jsxFileName,\n            lineNumber: 22,\n            columnNumber: 25\n          }, this)\n        }, void 0, false, {\n          fileName: _jsxFileName,\n          lineNumber: 21,\n          columnNumber: 21\n        }, this)\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 20,\n        columnNumber: 17\n      }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n        className: \"users__item-info-bottom\",\n        children: /*#__PURE__*/_jsxDEV(\"p\", {\n          children: props.profile.nickname\n        }, void 0, false, {\n          fileName: _jsxFileName,\n          lineNumber: 26,\n          columnNumber: 21\n        }, this)\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 25,\n        columnNumber: 17\n      }, this)]\n    }, void 0, true, {\n      fileName: _jsxFileName,\n      lineNumber: 19,\n      columnNumber: 13\n    }, this)]\n  }, void 0, true, {\n    fileName: _jsxFileName,\n    lineNumber: 11,\n    columnNumber: 9\n  }, this);\n};\n_c = UserItem;\nexport default UserItem;\nvar _c;\n$RefreshReg$(_c, \"UserItem\");","map":{"version":3,"names":["React","classNames","Name","UserItem","props","profile","nickname"],"sources":["/data/messenger.client/src/components/UserItem/index.tsx"],"sourcesContent":["import React from 'react';\nimport {UserItemProps} from \"../../models/props/UserItemProps\";\nimport classNames from \"classnames\";\nimport {getUserName} from \"../../utils/User\";\nimport {Avatar, Name} from \"../index\";\nimport './UserItem.scss';\n\nconst UserItem: React.FC<UserItemProps> = (props) => {\n\n    return (\n        <div\n            className={classNames('users__item', {\n                'users__item--online' : true,\n                'users__item--active': false\n            })}\n        >\n            <div className=\"users__item--avatar\">\n            </div>\n            <div className=\"users__item-info\">\n                <div className=\"users__item-info-top\">\n                    <p className='users__item-name'>\n                        <Name user={props.profile} />\n                    </p>\n                </div>\n                <div className='users__item-info-bottom'>\n                    <p>{props.profile.nickname}</p>\n                </div>\n            </div>\n        </div>\n    );\n}\n\nexport default UserItem;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAOC,UAAU,MAAM,YAAY;AAEnC,SAAgBC,IAAI,QAAO,UAAU;AACrC,OAAO,iBAAiB;AAAC;AAEzB,MAAMC,QAAiC,GAAIC,KAAK,IAAK;EAEjD,oBACI;IACI,SAAS,EAAEH,UAAU,CAAC,aAAa,EAAE;MACjC,qBAAqB,EAAG,IAAI;MAC5B,qBAAqB,EAAE;IAC3B,CAAC,CAAE;IAAA,wBAEH;MAAK,SAAS,EAAC;IAAqB;MAAA;MAAA;MAAA;IAAA,QAC9B,eACN;MAAK,SAAS,EAAC,kBAAkB;MAAA,wBAC7B;QAAK,SAAS,EAAC,sBAAsB;QAAA,uBACjC;UAAG,SAAS,EAAC,kBAAkB;UAAA,uBAC3B,QAAC,IAAI;YAAC,IAAI,EAAEG,KAAK,CAACC;UAAQ;YAAA;YAAA;YAAA;UAAA;QAAG;UAAA;UAAA;UAAA;QAAA;MAC7B;QAAA;QAAA;QAAA;MAAA,QACF,eACN;QAAK,SAAS,EAAC,yBAAyB;QAAA,uBACpC;UAAA,UAAID,KAAK,CAACC,OAAO,CAACC;QAAQ;UAAA;UAAA;UAAA;QAAA;MAAK;QAAA;QAAA;QAAA;MAAA,QAC7B;IAAA;MAAA;MAAA;MAAA;IAAA,QACJ;EAAA;IAAA;IAAA;IAAA;EAAA,QACJ;AAEd,CAAC;AAAA,KAvBKH,QAAiC;AAyBvC,eAAeA,QAAQ;AAAC;AAAA"},"metadata":{},"sourceType":"module"}